package cn.raysonblog.shopserviceprovider.service.impl;

import cn.raysonblog.shopservice.api.service.RpcShopService;
import com.alibaba.nacos.client.naming.utils.RandomUtils;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.Random;

/**
 * 接口实现类
 *
 * ## @Service 这个注解是使用dubbo提供的，
 *             这个注解中有很多属性，需要单独了解去进行配置
 *
 * @author raysonfang
 */
@DubboService
public class ShopServiceImpl implements RpcShopService {

    public String sayHello(String name) {
        return name + " provider" + RandomUtils.nextInt();
    }
}
